package com.chinasoft.tw.service.ysf;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * @Author: 叶淑菲
 * @Date: 2025/4/12 14:43
 */
public class YeShuFei implements TrueWord {
    String name;
    List<String> wordList =  new ArrayList<>();
    Random random = new Random();
    public YeShuFei(){
        this.name = "叶菲菲";
        wordList.add("好事多磨");
        wordList.add("今天周末");
    }
    @Override
    public Info getTrueWord() {
        int index = random.nextInt(wordList.size());
        Info info = new Info(name, wordList.get(index));
        return info;
    }
}
